from django.conf.urls.defaults import *

urlpatterns = patterns('nexo.wiki.views',
    # Example:
    # (r'^nexo/', include('nexo.foo.urls')),

    # Uncomment this for admin:
    #(r'^admin/', include('django.contrib.admin.urls')),
    #(r'^wiki/', include('nexo.wiki.urls')),
	(r'^$', 'index'),
	(r'^pages/$', 'pageIndex'),
	(r'^pages/new/$', 'newPage'),
	(r'^pages/(?P<pageId>\w+)/new/$', 'newPage'),
	(r'^pages/(?P<namespaceId>\w+)/(?P<pageId>\w+)/new/$', 'newPage'),
	(r'^pages/(?P<pageId>\w+)/$', 'pageDetail'),
	(r'^pages/(?P<pageId>\w+)/edit/$', 'editPage'),
	(r'^pages/(?P<pageId>\w+)/(?P<contentId>\w+)/edit/$', 'editPage'),
	(r'^pages/(?P<pageId>\w+)/revisionList/$', 'pageRevisionList'),
	(r'^revisions/(?P<revisionId>\w+)/$', 'revisionDetail'),
	(r'^error/$', 'error'),

)
